package com.lyf.boot.modules.system.entity.vo;

import com.lyf.boot.core.model.CascadeVo;
import io.github.linpeilie.annotations.AutoMapper;
import io.github.linpeilie.annotations.AutoMapping;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author Luyufan
 * @date 2023/7/7 9:04
 */
@Data
@AutoMapper(target = CascadeVo.class)
public class SysDeptVo implements Serializable {

    @Serial
    private static final long serialVersionUID = -549047217952314935L;

    /**
     * 部门id
     */
    @AutoMapping(target = "value")
    private Long deptId;

    /**
     * 部门名称
     */
    @AutoMapping(target = "label")
    private String deptName;

    /**
     * 父级部门id
     */
    private Long parentId;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 状态
     */
    private Integer status;

    /**
     * 备注
     */
    private String remark;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 下级部门
     */
    private List<SysDeptVo> children;

}
